#pragma once
#include<iostream>

class Task
{
	private:
		int top;
	public:
		Task():top(1){}
		Task(int _top):top(_top){}
		int Handler()
		{
			int sum = 0;
			for(auto i = 0; i<= top; i++)
			{
				sum += i;
			}
			return sum;
		}
		void Show()
		{
			std::cout<<"生产者：任务是累加数据从1~"<<top<<std::endl;
		}
		~Task(){}
};
